package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Account;
import org.csu.mypetstore.api.entity.Profile;
import org.csu.mypetstore.api.entity.Signon;
import org.csu.mypetstore.api.vo.AccountVO;

import java.util.List;

public interface AccountService {
    CommonResponse<AccountVO> getAccountByUserId(String userId);

    CommonResponse<List<AccountVO>> getAccountList();

    CommonResponse<List<Profile>> getallAccountprofile();

    CommonResponse<AccountVO> login(Signon signon);

    CommonResponse<String> insertAccount(AccountVO accountVO);

    CommonResponse<String> deleteAccount(Account account);

    CommonResponse<String> updateAccount(AccountVO accountVO);

    AccountVO accountToAccountVO(Account account);

    CommonResponse<AccountVO> getAccountByPhone(String phone);
}
